<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="codeRose.domain.Worker" %>
<%@ taglib prefix="c" 
           uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" 
           uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>shoppingmall</title>
    <link rel="stylesheet" href="css/style.css">
    <link rel="stylesheet" href="css/login.css">
    <link rel="stylesheet" href="css/invest.css">

</head>
<body>
  <div class="wrap" style="background-color:#f7f7f7;">

    <div class="header">
     <div class="top">

      <ul id="login">
          <li><a href=""><span>我的账户</span></a></li>
          <%Worker worker =(Worker) session.getAttribute("user");%>
          <h1>欢迎:<%=worker.getName().toString()%></h1><br><%-- [${sessionScope.customer.getNickname()}]</h1><br> --%>
      </ul>

    </div><!--top-->
    </div><!--header-->
	<form action="addgoods" method="post">
	
    <div class="main">
        <div class="withdraw">
            <h3>商品列表 <span></span> <a href="">买安心</a><a href="">买放心</a><a href="">买买买</a></h3>
        </div>
		<table width="100%" border=1>
		<tr>
			<td>商品名称</td>
			<td>商品价格</td>
			<td>生产日期</td>
			<td>保质日期</td>
			<td>类型</td>
			<td>折扣</td>
			<td>生产商</td>
			<td>尺码</td>
			<td>商品图片</td>
			<td>数量</td>
			<td>确认加货</td>
		<!-- <td><button type="submit" class="btn">
        <span>添加</span>
      </button></td> -->
		</tr>
		<c:forEach items="${list}" var="item">
		<c:if test="${item.look!='0'}">
		<tr>
		<td>${item.name}</td>
		<td>${item.price}</td>
		<td>${item.createtime}></td>
		<td>${item.limittime}</td>
		<td>${item.type}</td>
		<td>${item.discount}</td>
		<td>${item.productby}</td>
		<td>${item.size}</td>
		<td>${item.pic}</td>
		<td>${item.number}</td>
		<td><a href="confirm.jsp">${item.id}确认加么</a></td>
		</tr>
		</c:if>
		</c:forEach>
		</table>
<a href="addgoods.jsp">加货</a>
        <div class="invest">
            <div class="fy">
                <ul class="fyList">
                    <li><a href=""> > </a></li>
                    <li><a href="">1</a></li>
                    <li><a href="">2</a></li>
                    <li><a href="">3</a></li>
                    <li><a href="">4</a></li>
                    <li><a href="">5</a></li>
                    <li><a href="">6</a></li>
                    <li><a href="">7</a></li>
                    <li><a href="">8</a></li>
                    <li><a href="">9</a></li>
                    <li><a href="">10</a></li>
                    <li><a href=""> < </a></li>
                    <li style="width: 65px"><a href=""> 10条／页 </a></li>
                    <li style="border: none"><a>跳至</a></li>
                    <li style="width: 46px;"><input style="width: 43px;border: none;" type="text"></li>
                    <li style="border: none"><a>页</a></li>

                </ul>
            </div>
        </div>


    </div><!--main-->
    <button type="submit" class="btn">

        <span>显示所有的商品</span>

      </button>
</form>
    <div class="foot">
        <p> 服务条款 | 关于我们 | 联系我们 </p>
        <p>Copyright © Wanda. All Rights Reserved.</p>

    </div>


</div><!--wrap-->
</body>
</html>
